package com.woniu.supermarket.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.woniu.supermarket.entity.Department;
import com.woniu.supermarket.entity.Role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.List;

@Data
@ToString
@ApiModel(description = "封装员工对象")
@JsonIgnoreProperties(value = ("handler"))
public class EmployeeVo {
    @ApiModelProperty(value = "员工id")
    private Integer id;
    @ApiModelProperty(value = "员工编码")
    private String employeeNumber;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "手机电话")
    private String tel;
    @ApiModelProperty(value = "部门id")
    private Integer departmentId;
    @ApiModelProperty(value = "性别")
    private Integer gender;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "状态 1 禁用 0 启用")
    private Integer status;
    @ApiModelProperty(value = "部门")
    private Department department;
    @ApiModelProperty(value = "多个角色ids")
    private List<Integer> rolesIds;
    @ApiModelProperty(value = "多个的角色对象")
    private List<Role> roles;
}
